package com.cs.controller;

import com.cs.domain.CSDevice;
import com.cs.service.CSDeviceService;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.utils.SecurityUtils;
import com.ruoyi.system.api.model.LoginUser;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Security;
import java.util.List;

/**
 * @Author：bbdf
 * @Package：com.cs.controller
 * @Project：RuoYi-Cloud
 * @name：CSDeviceServiceController
 * @Date：2024-11-13 20:16
 * @Filename：CSDeviceServiceController
 */
@Tag(name = "管理后台 - 物料(或产品)")
@RestController
@RequestMapping("/product")
public class CSDeviceServiceController extends BaseController {

    @Autowired
    private CSDeviceService csDeviceService;
    @GetMapping("/productList")
    public TableDataInfo productList(CSDevice csDevice) {
        startPage();
        List<CSDevice> deviceList = csDeviceService.productList(csDevice);
        return getDataTable(deviceList);
    }
}
